package com.example.housingRentalSystem.service;

import com.example.housingRentalSystem.bean.User;

import java.util.List;

public interface UserService {

    User findByAccount(String account);

    void save(User user);

    void resetPwd(User user);

    void changePassword(String account, String oldPassword, String newPassword);

    User updateUserInfo(User user);

    User findUserInfoByAccount(String account);

    void updateAvatar(String account, String avatar);
    Integer getUserIdByAccount(String account);

    List<User> getUsersByRole(String roleName);

    void updateUserStatus(Integer userId, Integer status);

    void resetPassword(Integer userId);
    int selectUserCount();
}